<template>
  <div>
    <h2>我是count组件</h2>
    <button @click="count++">累加</button>
    <p class="count">{{count}}</p>
  </div>
</template>


<script>
export default {
  name:"count",
    data(){
      return{
        count:0
      }
    }
}
</script>


<style></style>